package main

import "fmt"

// 关系运算符
func main() {

	var x int = 8
	var y int = 10

	fmt.Println("value =", x > y)
	fmt.Println("value =", x >= y)
	fmt.Println("value =", x < y)
	fmt.Println("value =", x <= y)
	fmt.Println("value =", x == y)
	fmt.Println("value =", x != y)

	//不同类型不能比较，报错
	//var z float64 = 10.0
	//fmt.Println("value =", x > z) //Invalid operation: x > z (mismatched types int and float64)

}
